class task {
    constructor() {
        this.id = '';
        this.task_content = '';
        this.schedule = '';
        this.statement = '';
        this.log = '';
        this.start_time = '';
        this.end_time = '';
        this.other = '';
        this.task_content = '';
    }

    set(obj) {
        for (let i in obj) {
            if (i in this) {
                this[i] = obj[i];
            }
        }
        this.task_content = '';
        this.other = '';
        return this;
    }
}

module.exports = task;